public class Student {
    int id;
    String name;
    Course[] courses;

    public Student(int id, String name, Course[] courses) {
        this.id = id;
        this.name = name;
        this.courses = courses;
    }

    public void print() {
        System.out.println("id=" + id);
        System.out.println("name=" + name);
        for (Course c : courses) {
            c.print();
        }
    }

    public static void main(String[] args) {
        Course[] cs = new Course[3];
        cs[0] = new Course("chinese", 78);
        cs[1] = new Course("math", 89);
        cs[2] = new Course("english", 74);
        Student zhangsan = new Student(4564, "zhangsan", cs);
        zhangsan.print();
    }
}